#ifndef _Message_
#define _Message_

#include <iostream>
#include "level.hpp"
#include "util.hpp"
#include <thread>
namespace log
{
    struct LogMsg
    {
     size_t _line;//行号
     time_t _ctime;//时间
     std::thread::id _tid;  //线程id
     std::string _logger; //日志器名称
     std::string _file; //文件名
     std::string _payload;//日志消息  //payload有效载体
     LogLevel::value _level; //日志等级
    
     LogMsg( size_t line,
           LogLevel::value level,
            
            const std::string file,
            const std::string logger,
            const std::string msg):
            _ctime(util::Date::now()),
            _level(level),
            _file(file),
            _tid(std::this_thread::get_id()),
            _logger(logger),
            _payload(msg),
            _line(line){}



    };
}
#endif

